previousSibling

public abstract Optional<Node> previousSibling()

Returns an Optional that contains the previous node in the document tree if such a node exists, otherwise returns an empty Optional.

Throws

when this node is closed